package com.xgp.function;

import javax.annotation.PreDestroy;
import java.util.function.Predicate;

public class Demo02 {
    public static void main(String[] args) {
        Predicate<String> predicate = str -> !str.isEmpty();

        System.out.println(predicate.test("asdad"));
    }
}
